package agents.model;

import agents.behaviours.ClassifierBehaviour;
import agents.behaviours.SubscriptionDataServiceBehaviour;
import jade.core.Agent;

public class ClassifierAgentExample extends Agent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String attribute;
	
	@Override
	protected void setup() {
		
		Object[] args = getArguments();
		if(args.length == 0){
			throw new RuntimeException("The source attribute must be specified!");
		}
		attribute = args[0].toString();
		addBehaviour(new ClassifierBehaviour(attribute));
		addBehaviour(new SubscriptionDataServiceBehaviour(attribute));
	}
	
	

	
}
